<template>
	<view class="container">
		<Header />
		<List />
		<!-- #ifdef MP-WEIXIN -->
		<view>当前为微信小程序</view>
		<!-- #endif -->
	</view>
</template>

<script>
	import Header from './components/header.vue'
	import List from './components/list.vue'
	export default {
		components: {
			Header,
			List
		},
		data() {
			return {
				title: '我的小程序',
			}
		},
		onLoad() {
			this.setPageBar()
		},
		methods: {
			setPageBar() {
			  // 设置页面标题
			  uni.setNavigationBarTitle({
				title: this.title
			  })
			},
		}
	}
</script>

<style lang="scss" scoped>
 
</style>

